package com.icangya.domain;


import javax.persistence.*;
import java.sql.Timestamp;

@Entity
@Table(name = "rw_user_bank")
public class RwUserBank {//银行卡


    private long id;

    private String openid;//openid;

    private long userid;//用户id

    private String nickName;//用户名称

    private String headImg;//用户头像

    private Timestamp createTime;//申请时间

    private Timestamp payTime;//支付时间

    private String CardNum;//银行卡号

    private String bankAddr;//开户行

    private int status;//s是否已经支付。0：未打款，1：已打款

    private int moneys;//申请金额；

    private long bankId;//银行卡记录ID


    @Basic
    @Column(name = "moneys")
    public int getMoneys() {
        return moneys;
    }
    public void setMoneys(int moneys) {
        this.moneys = moneys;
    }
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }
    @Basic
    @Column(name = "openid")
    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    @Basic
    @Column(name = "userid")
    public long getUserid() {
        return userid;
    }

    public void setUserid(long userid) {
        this.userid = userid;
    }
    @Basic
    @Column(name = "nick_name")
    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }
    @Basic
    @Column(name = "head_img")
    public String getHeadImg() {
        return headImg;
    }

    public void setHeadImg(String headImg) {
        this.headImg = headImg;
    }
    @Basic
    @Column(name = "create_time")
    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }
    @Basic
    @Column(name = "pay_time")
    public Timestamp getPayTime() {
        return payTime;
    }

    public void setPayTime(Timestamp payTime) {
        this.payTime = payTime;
    }

    @Basic
    @Column(name = "car_num")
    public String getCardNum() {
        return CardNum;
    }

    public void setCardNum(String cardNum) {
        CardNum = cardNum;
    }

    @Basic
    @Column(name = "bank_addr")
    public String getBankAddr() {
        return bankAddr;
    }

    public void setBankAddr(String bankAddr) {
        this.bankAddr = bankAddr;
    }

    @Basic
    @Column(name = "status")
    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    @Basic
    @Column(name = "bank_id")
    public long getBankId() {
        return bankId;
    }
    public void setBankId(long bankId) {
        this.bankId = bankId;
    }


    public RwUserBank() {
    }

    public RwUserBank(String openid, long userid, String nickName, String headImg, Timestamp createTime, Timestamp payTime, String cardNum, String bankAddr, int status) {
        this.openid = openid;
        this.userid = userid;
        this.nickName = nickName;
        this.headImg = headImg;
        this.createTime = createTime;
        this.payTime = payTime;
        CardNum = cardNum;
        this.bankAddr = bankAddr;
        this.status = status;
    }
}
